package org.penguin.study.bk.organization.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.penguin.study.bk.base.api.UUIDEntity;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author chengyinghua
 */
@Data
@TableName("tbl_organizations")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(title = "tbl_organizations表对象", description = "组织信息")
public class Organization extends UUIDEntity implements Serializable {

    private static final long serialVersionUID = -7917846903371727474L;

    private String id;

    @NotBlank(message = "名称不能为空")
    private String name;

    @NotBlank(message = "代码不能为空")
    private String code;

    private String status;
}
